home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 127 / PC Guia 127.iso / Software / Produtividade / OpenOffice.org 2.0.1 / openofficeorg2.cab / wordml2ooo_custom_draw.xsl < prev    next >
Extensible Markup Language  |  2005-09-10  |  16KB  |  293 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3.  
  4.     OpenOffice.org - a multi-platform office productivity suite
  5.  
  6.     $RCSfile: wordml2ooo_custom_draw.xsl,v $
  7.  
  8.     $Revision: 1.6 $
  9.  
  10.     last change: $Author: rt $ $Date: 2005/09/08 22:11:27 $
  11.  
  12.     The Contents of this file are made available subject to
  13.     the terms of GNU Lesser General Public License Version 2.1.
  14.  
  15.  
  16.       GNU Lesser General Public License Version 2.1
  17.       =============================================
  18.       Copyright 2005 by Sun Microsystems, Inc.
  19.       901 San Antonio Road, Palo Alto, CA 94303, USA
  20.  
  21.       This library is free software; you can redistribute it and/or
  22.       modify it under the terms of the GNU Lesser General Public
  23.       License version 2.1, as published by the Free Software Foundation.
  24.  
  25.       This library is distributed in the hope that it will be useful,
  26.       but WITHOUT ANY WARRANTY; without even the implied warranty of
  27.       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  28.       Lesser General Public License for more details.
  29.  
  30.       You should have received a copy of the GNU Lesser General Public
  31.       License along with this library; if not, write to the Free Software
  32.       Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  33.       MA  02111-1307  USA
  34.  
  35. -->
  36. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:aml="http://schemas.microsoft.com/aml/2001/core" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" exclude-result-prefixes="w wx aml o dt fo v">
  37.     <xsl:template name="ms_word_draw_map2ooo_custom_draw">
  38.         <xsl:param name="ms_word_draw_type"/>
  39.         <!-- all ooo draw names are get from EnhancedCustomShapeGeometry.idl-->
  40.         <xsl:choose>
  41.             <xsl:when test="$ms_word_draw_type = '#_x0000_t5'  ">
  42.                 <xsl:value-of select=" 'isosceles-triangle'"/>
  43.             </xsl:when>
  44.             <xsl:when test="$ms_word_draw_type ='#_x0000_t6' ">
  45.                 <xsl:value-of select="  'right-triangle' "/>
  46.             </xsl:when>
  47.             <xsl:when test="$ms_word_draw_type =  '#_x0000_t8' ">
  48.                 <xsl:value-of select=" 'trapezoid' "/>
  49.             </xsl:when>
  50.             <xsl:when test="$ms_word_draw_type =  '#_x0000_t4' ">
  51.                 <xsl:value-of select=" 'diamond' "/>
  52.             </xsl:when>
  53.             <xsl:when test="$ms_word_draw_type = '#_x0000_t9'  ">
  54.                 <xsl:value-of select=" 'hexagon' "/>
  55.             </xsl:when>
  56.             <xsl:when test="$ms_word_draw_type =   '#_x0000_t7' ">
  57.                 <xsl:value-of select="'parallelogram' "/>
  58.             </xsl:when>
  59.             <xsl:when test="$ms_word_draw_type = '#_x0000_t56' ">
  60.                 <xsl:value-of select=" 'pentagon' "/>
  61.             </xsl:when>
  62.             <xsl:when test="$ms_word_draw_type = '#_x0000_t10' ">
  63.                 <xsl:value-of select=" 'octagon' "/>
  64.             </xsl:when>
  65.             <xsl:when test="$ms_word_draw_type = '#_x0000_t11' ">
  66.                 <xsl:value-of select=" 'cross' "/>
  67.             </xsl:when>
  68.             <xsl:when test="$ms_word_draw_type = '#_x0000_t23' ">
  69.                 <xsl:value-of select=" 'ring' "/>
  70.             </xsl:when>
  71.             <xsl:when test="$ms_word_draw_type = '#_x0000_t95' ">
  72.                 <xsl:value-of select=" 'block-arc'  "/>
  73.             </xsl:when>
  74.             <xsl:when test="$ms_word_draw_type =  '#_x0000_t22' ">
  75.                 <xsl:value-of select=" 'can' "/>
  76.             </xsl:when>
  77.             <xsl:when test="$ms_word_draw_type = '#_x0000_t16' ">
  78.                 <xsl:value-of select=" 'cube' "/>
  79.             </xsl:when>
  80.             <xsl:when test="$ms_word_draw_type = '#_x0000_t65' ">
  81.                 <xsl:value-of select=" 'paper' "/>
  82.             </xsl:when>
  83.             <xsl:when test="$ms_word_draw_type = '#_x0000_t96' ">
  84.                 <xsl:value-of select=" 'smiley' "/>
  85.             </xsl:when>
  86.             <xsl:when test="$ms_word_draw_type = '#_x0000_t183' ">
  87.                 <xsl:value-of select=" 'sun' "/>
  88.             </xsl:when>
  89.             <xsl:when test="$ms_word_draw_type = '#_x0000_t184' ">
  90.                 <xsl:value-of select=" 'moon' "/>
  91.             </xsl:when>
  92.             <xsl:when test="$ms_word_draw_type = '#_x0000_t74' ">
  93.                 <xsl:value-of select=" 'heart' "/>
  94.             </xsl:when>
  95.             <xsl:when test="$ms_word_draw_type = '#_x0000_t57' ">
  96.                 <xsl:value-of select=" 'forbidden' "/>
  97.             </xsl:when>
  98.             <xsl:when test="$ms_word_draw_type ='#_x0000_t85' ">
  99.                 <xsl:value-of select="  'left-bracket'  "/>
  100.             </xsl:when>
  101.             <xsl:when test="$ms_word_draw_type = '#_x0000_t86' ">
  102.                 <xsl:value-of select=" 'right-bracket' "/>
  103.             </xsl:when>
  104.             <xsl:when test="$ms_word_draw_type = '#_x0000_t87' ">
  105.                 <xsl:value-of select=" 'left-brace'  "/>
  106.             </xsl:when>
  107.             <xsl:when test="$ms_word_draw_type = '#_x0000_t88' ">
  108.                 <xsl:value-of select=" 'right-brace' "/>
  109.             </xsl:when>
  110.             <xsl:when test="$ms_word_draw_type = '#_x0000_t185' ">
  111.                 <xsl:value-of select=" 'bracket-pair' "/>
  112.             </xsl:when>
  113.             <xsl:when test="$ms_word_draw_type = '#_x0000_t186' ">
  114.                 <xsl:value-of select=" 'brace-pair' "/>
  115.             </xsl:when>
  116.             <xsl:when test="$ms_word_draw_type =  '#_x0000_t189' ">
  117.                 <xsl:value-of select=" 'quad-bevel' "/>
  118.             </xsl:when>
  119.             <xsl:when test="$ms_word_draw_type =  '#_x0000_t66' ">
  120.                 <xsl:value-of select=" 'left-arrow' "/>
  121.             </xsl:when>
  122.             <xsl:when test="$ms_word_draw_type = '#_x0000_t67' ">
  123.                 <xsl:value-of select=" 'down-arrow' "/>
  124.             </xsl:when>
  125.             <xsl:when test="$ms_word_draw_type = '#_x0000_t68' ">
  126.                 <xsl:value-of select=" 'up-arrow' "/>
  127.             </xsl:when>
  128.             <xsl:when test="$ms_word_draw_type = '#_x0000_t13' ">
  129.                 <xsl:value-of select=" 'right-arrow' "/>
  130.             </xsl:when>
  131.             <xsl:when test="$ms_word_draw_type = '#_x0000_t69' ">
  132.                 <xsl:value-of select=" 'left-right-arrow' "/>
  133.             </xsl:when>
  134.             <xsl:when test="$ms_word_draw_type = '#_x0000_t70' ">
  135.                 <xsl:value-of select=" 'up-down-arrow' "/>
  136.             </xsl:when>
  137.             <xsl:when test="$ms_word_draw_type = '#_x0000_t89' ">
  138.                 <xsl:value-of select=" 'mso-spt89' "/>
  139.             </xsl:when>
  140.             <xsl:when test="$ms_word_draw_type = '#_x0000_t76' ">
  141.                 <xsl:value-of select=" 'quad-arrow' "/>
  142.             </xsl:when>
  143.             <xsl:when test="$ms_word_draw_type = '#_x0000_t94' ">
  144.                 <xsl:value-of select=" 'notched-right-arrow' "/>
  145.             </xsl:when>
  146.             <xsl:when test="$ms_word_draw_type =  '#_x0000_t177' ">
  147.                 <xsl:value-of select=" 'pentagon-right' "/>
  148.             </xsl:when>
  149.             <xsl:when test="$ms_word_draw_type = '#_x0000_t55' ">
  150.                 <xsl:value-of select=" 'chevron' "/>
  151.             </xsl:when>
  152.             <xsl:when test="$ms_word_draw_type = '#_x0000_t79' ">
  153.                 <xsl:value-of select=" 'up-arrow-callout' "/>
  154.             </xsl:when>
  155.             <xsl:when test="$ms_word_draw_type = '#_x0000_t80' ">
  156.                 <xsl:value-of select=" 'down-arrow-callout' "/>
  157.             </xsl:when>
  158.             <xsl:when test="$ms_word_draw_type = '#_x0000_t82' ">
  159.                 <xsl:value-of select=" 'up-down-arrow-callout' "/>
  160.             </xsl:when>
  161.             <xsl:when test="$ms_word_draw_type = '#_x0000_t103' ">
  162.                 <xsl:value-of select=" 'circular-arrow' "/>
  163.             </xsl:when>
  164.             <xsl:when test="$ms_word_draw_type =  '#_x0000_t109' ">
  165.                 <xsl:value-of select=" 'flowchart-process'  "/>
  166.             </xsl:when>
  167.             <xsl:when test="$ms_word_draw_type =  '#_x0000_t116' ">
  168.                 <xsl:value-of select=" 'flowchart-alternate-process' "/>
  169.             </xsl:when>
  170.             <xsl:when test="$ms_word_draw_type =  '#_x0000_t110' ">
  171.                 <xsl:value-of select=" 'flowchart-decision' "/>
  172.             </xsl:when>
  173.             <xsl:when test="$ms_word_draw_type = '#_x0000_t111' ">
  174.                 <xsl:value-of select=" 'flowchart-data' "/>
  175.             </xsl:when>
  176.             <xsl:when test="$ms_word_draw_type =   '#_x0000_t112' ">
  177.                 <xsl:value-of select=" 'flowchart-predefined-process' "/>
  178.             </xsl:when>
  179.             <xsl:when test="$ms_word_draw_type =  '#_x0000_t113' ">
  180.                 <xsl:value-of select=" 'flowchart-internal-storage'  "/>
  181.             </xsl:when>
  182.             <xsl:when test="$ms_word_draw_type = '#_x0000_t114' ">
  183.                 <xsl:value-of select=" 'flowchart-document'  "/>
  184.             </xsl:when>
  185.             <xsl:when test="$ms_word_draw_type = '#_x0000_t115' ">
  186.                 <xsl:value-of select=" 'flowchart-multidocument' "/>
  187.             </xsl:when>
  188.             <xsl:when test="$ms_word_draw_type = '#_x0000_t116' ">
  189.                 <xsl:value-of select=" 'flowchart-terminator' "/>
  190.             </xsl:when>
  191.             <xsl:when test="$ms_word_draw_type = '#_x0000_t117' ">
  192.                 <xsl:value-of select=" 'flowchart-preparation' "/>
  193.             </xsl:when>
  194.             <xsl:when test="$ms_word_draw_type = '#_x0000_t118' ">
  195.                 <xsl:value-of select=" 'flowchart-manual-input' "/>
  196.             </xsl:when>
  197.             <xsl:when test="$ms_word_draw_type = '#_x0000_t119' ">
  198.                 <xsl:value-of select=" 'flowchart-manual-operation' "/>
  199.             </xsl:when>
  200.             <xsl:when test="$ms_word_draw_type = '#_x0000_t120' ">
  201.                 <xsl:value-of select=" 'flowchart-connector' "/>
  202.             </xsl:when>
  203.             <xsl:when test="$ms_word_draw_type =  '#_x0000_t177' ">
  204.                 <xsl:value-of select=" 'flowchart-off-page-connector' "/>
  205.             </xsl:when>
  206.             <xsl:when test="$ms_word_draw_type = '#_x0000_t121' ">
  207.                 <xsl:value-of select=" 'flowchart-card' "/>
  208.             </xsl:when>
  209.             <xsl:when test="$ms_word_draw_type = '#_x0000_t122'  ">
  210.                 <xsl:value-of select=" 'flowchart-punched-tape' "/>
  211.             </xsl:when>
  212.             <xsl:when test="$ms_word_draw_type = '#_x0000_t123' ">
  213.                 <xsl:value-of select=" 'flowchart-summing-junction'  "/>
  214.             </xsl:when>
  215.             <xsl:when test="$ms_word_draw_type = '#_x0000_t124' ">
  216.                 <xsl:value-of select=" 'flowchart-or'  "/>
  217.             </xsl:when>
  218.             <xsl:when test="$ms_word_draw_type = '#_x0000_t125'  ">
  219.                 <xsl:value-of select=" 'flowchart-collate' "/>
  220.             </xsl:when>
  221.             <xsl:when test="$ms_word_draw_type =  '#_x0000_t126' ">
  222.                 <xsl:value-of select=" 'flowchart-sort' "/>
  223.             </xsl:when>
  224.             <xsl:when test="$ms_word_draw_type = '#_x0000_t127'  ">
  225.                 <xsl:value-of select=" 'flowchart-extract' "/>
  226.             </xsl:when>
  227.             <xsl:when test="$ms_word_draw_type =  '#_x0000_t128' ">
  228.                 <xsl:value-of select=" 'flowchart-merge' "/>
  229.             </xsl:when>
  230.             <xsl:when test="$ms_word_draw_type = '#_x0000_t130'  ">
  231.                 <xsl:value-of select="  'flowchart-stored-data' "/>
  232.             </xsl:when>
  233.             <xsl:when test="$ms_word_draw_type = '#_x0000_t135' ">
  234.                 <xsl:value-of select=" 'flowchart-delay'  "/>
  235.             </xsl:when>
  236.             <xsl:when test="$ms_word_draw_type = '#_x0000_t131'  ">
  237.                 <xsl:value-of select=" 'flowchart-sequential-access' "/>
  238.             </xsl:when>
  239.             <xsl:when test="$ms_word_draw_type = '#_x0000_t132' ">
  240.                 <xsl:value-of select=" 'flowchart-magnetic-disk' "/>
  241.             </xsl:when>
  242.             <xsl:when test="$ms_word_draw_type = '#_x0000_t133' ">
  243.                 <xsl:value-of select=" 'flowchart-direct-access-storage' "/>
  244.             </xsl:when>
  245.             <xsl:when test="$ms_word_draw_type =  '#_x0000_t134' ">
  246.                 <xsl:value-of select=" 'flowchart-display'  "/>
  247.             </xsl:when>
  248.             <xsl:when test="$ms_word_draw_type = '#_x0000_t61' ">
  249.                 <xsl:value-of select=" 'rectangular-callout' "/>
  250.             </xsl:when>
  251.             <xsl:when test="$ms_word_draw_type = '#_x0000_t62' ">
  252.                 <xsl:value-of select=" 'round-rectangular-callout'  "/>
  253.             </xsl:when>
  254.             <xsl:when test="$ms_word_draw_type = '#_x0000_t63' ">
  255.                 <xsl:value-of select=" 'round-callout' "/>
  256.             </xsl:when>
  257.             <xsl:when test="$ms_word_draw_type = '#_x0000_t106' ">
  258.                 <xsl:value-of select=" 'cloud-callout' "/>
  259.             </xsl:when>
  260.             <xsl:when test="$ms_word_draw_type =  '#_x0000_t50' ">
  261.                 <xsl:value-of select=" 'line-callout-1' "/>
  262.             </xsl:when>
  263.             <xsl:when test="$ms_word_draw_type = '#_x0000_t51' ">
  264.                 <xsl:value-of select=" 'line-callout-2' "/>
  265.             </xsl:when>
  266.             <xsl:when test="$ms_word_draw_type = '#_x0000_t47' ">
  267.                 <xsl:value-of select=" 'line-callout-3' "/>
  268.             </xsl:when>
  269.             <xsl:when test="$ms_word_draw_type = '#_x0000_t72' ">
  270.                 <xsl:value-of select=" 'bang' "/>
  271.             </xsl:when>
  272.             <xsl:when test="$ms_word_draw_type = '#_x0000_t187' ">
  273.                 <xsl:value-of select=" 'star4' "/>
  274.             </xsl:when>
  275.             <xsl:when test="$ms_word_draw_type = '#_x0000_t12' ">
  276.                 <xsl:value-of select=" 'star5' "/>
  277.             </xsl:when>
  278.             <xsl:when test="$ms_word_draw_type = '#_x0000_t58' ">
  279.                 <xsl:value-of select=" 'star8' "/>
  280.             </xsl:when>
  281.             <xsl:when test="$ms_word_draw_type = '#_x0000_t92' ">
  282.                 <xsl:value-of select=" 'star24' "/>
  283.             </xsl:when>
  284.             <xsl:when test="$ms_word_draw_type = '#_x0000_t97' ">
  285.                 <xsl:value-of select=" 'vertical-scroll' "/>
  286.             </xsl:when>
  287.             <xsl:when test="$ms_word_draw_type = '#_x0000_t98' ">
  288.                 <xsl:value-of select=" 'horizontal-scroll' "/>
  289.             </xsl:when>
  290.         </xsl:choose>
  291.     </xsl:template>
  292. </xsl:stylesheet>
  293.